package shape;

import javax.media.opengl.GL2;

import util.Util;

import com.jogamp.opengl.util.gl2.GLUT;

public class Sphere extends Shape {
	
	public Sphere( double radius ) {
		super();
		setSize(radius, radius, radius);
	}
	
	public Sphere() {
		this(1.0);
	}

	
	@Override
	protected void draw( GL2 gl ) {
		Util.glut.glutSolidSphere(1.0, 20, 20);
	}
	
	@Override
	protected void drawSelected( GL2 gl ) {
		Util.glut.glutWireSphere(1.0, 20, 20);
	}
}
